package cn.lixu.config;

import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 *@author lixu
 *@data 2022/08/19 0019 14:21:05
 * @param: null
 * @return: null
 * .配置OpenFeign日志打印内容[需要配合log4j进行使用]
 **/
@Configuration
public class FeignConfiguration {
    @Bean
    Logger.Level feignLoggerLevel() {
        return Logger.Level.FULL;    //打印Feign的所有日志
    }
}